home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / ImageCodec.a < prev    next >
Encoding:
Text File  |  1993-12-02  |  4.0 KB  |  151 lines  |  [TEXT/MPS ]

  1. ;___________________________________________________________________________
  2. ; Created: Saturday, April 24, 1993
  3. ; Modified: Tue, Nov 30, 1993 01:16:44
  4. ;
  5. ; File: ImageCodec.a
  6. ;
  7. ; Assembler Interface to the Macintosh Libraries
  8. ; Copyright Apple Computer, Inc. 1990-93
  9. ; All Rights Reserved
  10. ;
  11. ;___________________________________________________________________________
  12.  
  13.  IF &TYPE('__INCLUDINGIMAGECODEC__') = 'UNDEFINED' THEN
  14. __INCLUDINGIMAGECODEC__   SET 1
  15.  
  16.  
  17.  
  18. ;    codec component selectors    
  19. ;    codec selectors 0-127 are reserved by Apple 
  20. ;    codec selectors 128-191 are subtype specific 
  21. ;    codec selectors 192-255 are vendor specific 
  22. ;    codec selectors 256-32767 are reserved by Apple 
  23. ;    negative selectors are reserved by the Component Manager 
  24.  
  25.  
  26. codecGetCodecInfo                    EQU $00
  27. codecGetCompressionTime                EQU $01
  28. codecGetMaxCompressionSize            EQU $02
  29. codecPreCompress                    EQU $03
  30. codecBandCompress                    EQU $04
  31. codecPreDecompress                    EQU $05
  32. codecBandDecompress                    EQU $06
  33. codecCDSequenceBusy                    EQU $07
  34. codecGetCompressedImageSize            EQU $08
  35. codecGetSimilarity                    EQU $09
  36. codecTrimImage                        EQU $0A
  37. codecRequestSettings                EQU $0B
  38. codecGetSettings                    EQU $0C
  39. codecSetSettings                    EQU $0D
  40.  
  41.  
  42.  
  43.  
  44. ;    codec capabilities flags    
  45.  
  46. codecCanScale                        EQU $1
  47. codecCanMask                        EQU $2
  48. codecCanMatte                        EQU $4
  49. codecCanTransform                    EQU $8
  50. codecCanTransferMode                EQU $10
  51. codecCanCopyPrev                    EQU $20
  52. codecCanSpool                        EQU $40
  53. codecCanClipVertical                EQU $80
  54. codecCanClipRectangular                EQU $100
  55. codecCanRemapColor                    EQU $200
  56. codecCanFastDither                    EQU $400
  57. codecCanSrcExtract                    EQU $800
  58. codecCanCopyPrevComp                EQU $1000
  59. codecCanAsync                        EQU $2000
  60. codecCanMakeMask                    EQU $4000
  61. codecCanShift                        EQU $8000
  62.  
  63.  
  64.  
  65. codecConditionFirstBand                EQU $1
  66. codecConditionLastBand                EQU $2
  67. codecConditionFirstFrame            EQU $4
  68. codecConditionNewDepth                EQU $8
  69. codecConditionNewTransform            EQU $10
  70. codecConditionNewSrcRect            EQU $20
  71. codecConditionNewMask                EQU $40
  72. codecConditionNewMatte                EQU $80
  73. codecConditionNewTransferMode        EQU $100
  74. codecConditionNewClut                EQU $200
  75. codecConditionNewAccuracy            EQU $400
  76. codecConditionNewDestination        EQU $800
  77. codecConditionFirstScreen            EQU $1000
  78. codecConditionCodecChangedMask        EQU $80000000
  79.  
  80. codecInfoResourceType    EQU    'cdci'    ;codec info resource type 
  81.  
  82. codecInterfaceVersion    EQU        1    ; high word returned in component GetVersion 
  83.  
  84.  
  85.  
  86. CodecCapabilitiesRecord     RECORD        0
  87. flags                        DS.L        1
  88. wantedPixelSize                DS.W        1
  89. extendWidth                    DS.W        1
  90. extendHeight                DS.W        1
  91. bandMin                        DS.W        1
  92. bandInc                        DS.W        1
  93. pad                            DS.W        1
  94. time                        DS.L        1
  95. size                        EQU            *
  96.                             ENDR
  97.  
  98. CodecCompressParams     RECORD     0
  99. sequenceID                 DS.L    1        ; precompress,bandcompress 
  100. imageDescription        DS.L    1        ; precompress,bandcompress 
  101. data                     DS.L    1
  102. bufferSize                DS.L    1
  103. frameNumber                DS.L    1
  104. startLine                DS.L    1
  105. stopLine                DS.L    1
  106. conditionFlags            DS.L    1
  107. callerFlags                DS.W    1
  108. capabilities             DS.L    1        ; precompress,bandcompress 
  109. progressProcRecord        DS.L    2
  110. completionProcRecord    DS.L    2    
  111. flushProcRecord            DS.L    2
  112. srcPixMap                  DS.W    25        ; precompress,bandcompress 
  113. prevPixMap                 DS.W    25    
  114. spatialQuality             DS.L    1
  115. temporalQuality            DS.L    1
  116. similarity                 DS.L    1
  117. dataRateParams            DS.L    1
  118. reserved                DS.L    1    
  119. size                    EQU    *
  120.                         ENDR
  121.  
  122. CodecDecompressParams     RECORD     0
  123. sequenceID                DS.L    1            ; predecompress,banddecompress 
  124. imageDescription         DS.L    1            ; predecompress,banddecompress 
  125. data                     DS.L    1
  126. bufferSize                 DS.L    1
  127. frameNumber                DS.L    1
  128. startLine                 DS.L    1
  129. stopLine                 DS.L    1
  130. conditionFlags             DS.L    1
  131. callerFlags             DS.W    1
  132. capabilities             DS.L    1            ; predecompress,banddecompress 
  133. progressProcRecord         DS.L    2
  134. completionProcRecord     DS.L    2
  135. dataProcRecord             DS.L    2
  136. port                     DS.L    1            ; predecompress,banddecompress 
  137. dstPixMap                 DS.W    25            ; predecompress,banddecompress 
  138. maskBits                 DS.L    1
  139. mattePixMap             DS.L    1
  140. srcRect                 DS.W    4            ; predecompress,banddecompress 
  141. matrix                     DS.L    1            ; predecompress,banddecompress 
  142. accuracy                 DS.L    1            ; predecompress,banddecompress 
  143. transferMode             DS.W    1            ; predecompress,banddecompress 
  144. reserved                 DS.L    2                
  145. size                    EQU    *
  146.                         ENDR
  147.  
  148.  
  149.  
  150.     ENDIF    ; __IMAGECODEC__
  151.